realtek: align declaration/static/extern function definitions for startup code
authorMarkus Stockhausen <[email protected]>
Mon, 26 May 2025 12:11:28 +0000 (08:11 -0400)
committerRobert Marko <[email protected]>
Tue, 27 May 2025 08:26:18 +0000 (10:26 +0200)
commit7b65949bc4c911c4879dae567cd4efb61da05a2d
treec6924f364dbeec719250ef4ee0e1a6d8e697b955
parentb69e6c35c515f2de579712685b9e498418df2758
realtek: align declaration/static/extern function definitions for startup code

In 2023 upstream has tightened compiler checks with this patch
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit
/scripts/Makefile.extrawarn?h=v6.15&id=0fcb70851fbfea1776ae62f67c503fef8f0292b9

A consistent function definition is now needed. I.e.

- functions must be either declared with "static" or
- functions need an additional declaration (in the header file)

Before upgrading the Realtek target to 6.12 clean the code so that the main
6.12 PR can focus on real issues from the version bump.

Signed-off-by: Markus Stockhausen <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/18925
Signed-off-by: Robert Marko <[email protected]>
target/linux/realtek/files-6.6/arch/mips/rtl838x/prom.c
target/linux/realtek/files-6.6/arch/mips/rtl838x/setup.c